import os.path


class Config:
    DEBUG = True
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SECRET_KEY = 'session_secret_key02'
    # 项目路径
    BASE_DIR = os.path.dirname(os.path.abspath(__file__))
    # 静态文件夹的路径,项目路径拼接向下的文件夹
    STATIC_DIR = os.path.join(BASE_DIR, 'static')
    TEMPLATES_DIR = os.path.join(BASE_DIR, 'templates')
    # 数据库配置
    HOST = "10.0.12.72"
    PORT = 3306
    USER = 'root',
    PASSWORD = 'Cosmo_6003',
    DATABASE = 'mxwi'


class DevelopmentConfig(Config):
    ENV = 'development'
